package com.demo.entity;

import java.io.Serializable;

import javax.validation.constraints.NotNull;  
import javax.validation.constraints.Size;
public class UserInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	@NotNull(message="name is not null")
    @Size(min = 4, max = 6, message = "length is wrong")
	private String name;
	
    @NotNull(message="password not null") 
    @Size(min = 6, max = 10,message="length is >6  <10")  
	private String password;
    
    private String errors;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getErrors() {
		return errors;
	}

	public void setErrors(String errors) {
		this.errors = errors;
	}
	
	
}
